package com.nervenets.web.controller.handler.admin.user;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserRoleParams extends TokenParams {
    @NeedValidation(type = Type.POSITIVENUMBER, description = "目标用户ID")
    private long targetUserId;
    //private long inviteUserId;
    @NeedValidation(type = Type.NOTEMPTY, description = "目标用户权限，格式：{\"admin\":false,\"dealer\":false,\"issue\":false,\"market\":false,\"user\":true}")
    private String userRoles;
}
